#ifndef _DESKTOP_TEST_H_
#define _DESKTOP_TEST_H_

#include "../../../include/common.h"
#include "../../../include/public/public.h"
#include "stdint.h"

typedef struct
{
    uint8_t RouteId;
    uint32_t TxCnt;
    uint32_t RxCnt;
} Route_Typedef; // 304

enum autoCheckProcess
{
    Auto_Null = 0,
    Auto_Init,
    Auto_Over,
    Auto_SendData,
    Auto_View,
    Auto_Wait
};

typedef struct
{
    uint8_t state;

    char *buf;
    Route_Typedef Route[9];
    uint8_t SendCnt;
    uint32_t CheckTime;
    uint8_t SocketId;
    uint8_t USBInsertFlag;
    uint8_t SDInsertFlag;
} autoCheck_Typedef; // 304
extern autoCheck_Typedef autoCheck;

extern int auto_start();
extern void auto_stop();
int auto_Check_Pro(cfg_pu_t *pu);
extern void desktop_test_run(cfg_pu_t *pu);

#endif
